#define _CRT_SECURE_NO_WARNINGS 1
using namespace std;
#include<iostream>
#include<list>

int main()
{
	list<int> li = { 1,2,3 };
	li.resize(5);
	for (auto& num : li)
	{
		cout << num << " ";
	}
	cout << endl;
	li.resize(2);
	for (auto& num : li)
	{
		cout << num << " ";
	}
	return 0;
}